package String;

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            String str = sc.nextLine();
            String str2 = "";
            String[] arr = str.split(",");
            System.out.printf("[");
            for (String s:arr) {
                System.out.printf(s);
            }
            System.out.println("]");
        }
    }
}